package com.stone.starter.core.interceptor.manager;

import com.stone.starter.core.interceptor.InterceptorChainBuilder;
import com.stone.starter.core.interceptor.InterceptorChainConfigurer;
import com.stone.starter.core.interceptor.interceptors.HandlerInterceptor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.security.SecurityProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 用户拦截器链管理器实现
 *
 * @author Mr_wenpan@163.com 2021/11/30 11:00 上午
 */
@Component
@ConditionalOnBean({HandlerInterceptor.class, InterceptorChainConfigurer.class})
public class UserInterceptorChainManager extends AbstractInterceptorChainManager<SecurityProperties.User> {

    public UserInterceptorChainManager(List<HandlerInterceptor<SecurityProperties.User>> handlerInterceptors,
                                       List<InterceptorChainConfigurer<SecurityProperties.User, InterceptorChainBuilder<SecurityProperties.User>>> interceptorChainConfigurers) {
        super(handlerInterceptors, interceptorChainConfigurers);
    }
}